<?php
//	updateprivacy.php

	//initialize variables
	$id = $_POST['id'];	
	
	$postpicture = $_POST['postpicture'];
	$postsong = $_POST['postsong'];
	$postblog = $_POST['postblog'];
	
	$ratepicture = $_POST['ratepicture'];
	$ratesong = $_POST['ratesong'];
	$rateblog = $_POST['rateblog'];
	
	$commentpicture = $_POST['commentpicture'];
	$commentsong = $_POST['commentsong'];
	$commentblog = $_POST['commentblog'];
	
	$postbuzz = $_POST['postbuzz'];
	$profilechanges = $_POST['profilechanges'];
	
	echo $postbuzz;
	
	require_once "../common/PinSQL.obj";
	
	$pinSQL = new pinSQL();
	
	$pinSQL->Query("UPDATE privacy SET
		postpicture='$postpicture',
		postsong='$postsong',
		postblog='$postblog',
		ratepicture='$ratepicture',
		ratesong='$ratesong',
		rateblog='$rateblog',
		commentpicture='$commentpicture',
		commentsong='$commentsong',
		commentblog='$commentblog',
		postbuzz='$postbuzz',
		profilechange='$profilechanges'
	WHERE id=$id");
	
	echo "success!";
	
?>